package com.football.springboot.mapper;

import com.football.springboot.entity.League;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.football.springboot.entity.Team;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李越
 * @since 2023-02-17
 */
public interface LeagueMapper extends BaseMapper<League> {

    //通过联赛id查找球队列表的信息
    List<Team> findTeamByLeagueId(@Param("league_id") Integer leagueId);
}
